package cn.stronglink.asset.module.dam.mapper;


import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.stronglink.asset.model.SensorSetting;
import cn.stronglink.asset.module.dam.entity.dev.AssetInfo;
import cn.stronglink.asset.module.dam.entity.dev.RackInfo;

public interface DamSensorMapper {
	
	//根据asset_id  查询是否已存在此条记录
	public SensorSetting getSensorCountByAssetIdSensorTypePosition(SensorSetting sersor);
	
	//存在此asset_id 的记录, 进行数据更新
	public void updateSensor(List<SensorSetting> list);
	//不存在,则插入新数据
	public void insertSensor(List<SensorSetting> list);
	
	//获取机柜信息   机柜名, 机柜id, 总u, 使用u , 传感器表id
	public RackInfo getRackInfo(@Param(value="rackConverCode") String rackConverCode);
	//获取 资产信息
	public List<AssetInfo> getAssestInfoInRack(@Param(value="rackConverCode") String rackConverCode,
			@Param(value="startIndex")int startIndex, @Param(value="maxCount")int maxCount) ;
	
}
